package com.zking;

import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@ApiServer("http://localhost:8080/user")
public interface IUserApi {
    @GetMapping("/")
    Flux<Customent> getAllUser();

    @GetMapping("/{id}")
    Mono<Customent> getUserId(@PathVariable("id") Integer id);

    @DeleteMapping("/{id}")
    Mono<Customent> deleteUserById(@PathVariable("id") Integer id);

    @PostMapping("/")
    Mono<Customent> createUser(@RequestBody Mono<Customent> customent);

}
